/**
 * 处理移动端新增后的审核，审核通过将delete_flag 设置为0，不通过不处理
 */
function main(defaultParams) {
    debugger
    if (defaultParams.moduleActionType === 'form-save') {

        // 申请类型 1：场所，2：摊位，3:摊主
        // law_stall_organization_base   law_stall_base     law_stall_holder_base
        let tableList = ['ds_tbl:t_770183d1fd484443b39a89d22d462ae1','ds_tbl:t_18c4c95916cf4ef2ab6725cd4d9bd800','ds_tbl:t_de8aa08a73cf44a1b458dee1519542b8'];
        let tableListId = ['stall_organization_id','stall_id','holder_id']
        let typeIndex = parseInt(defaultParams.callbackParams.result["root_5r9r5h"].number_input_3kigmg);
        let id = defaultParams.callbackParams.result["root_5r9r5h"].number_input_a14865;
        let state = defaultParams.callbackParams.result["root_5r9r5h"].radio_gm56ul;

        let deleteFlag = -1;
        if (state === '1') {
            deleteFlag = 0;
        }

        let updateSql = `UPDATE('${tableList[typeIndex]}', QUERY_EQ('${tableListId[typeIndex]}', '${id}'), '', ['delete_flag', '${deleteFlag}'])`

        api.EXEC_FORMULA(updateSql).then(function(updateRes) {
            console.log(updateRes);
        });


    }
}
